package com.catazy.ocrdemo.ui.activity.scan.fragment.process

import android.os.Bundle
import com.catazy.mvvmlib.base.fragment.BaseVmVbFragment
import com.catazy.ocrdemo.databinding.FragmentImageProcessBinding
import com.catazy.ocrdemo.ui.activity.scan.AppScanActivity

/**
 * 作者: Tao
 * 日期: 2024/3/15
 * 时间: 17:19
 * 描述:
 */
class ImageProcessFragment:BaseVmVbFragment<ImageProcessViewModel,FragmentImageProcessBinding>() {

    override fun initView(savedInstanceState: Bundle?) {

        mDatabind.imagePreview.setImageBitmap(getAppScanActivity()?.getCroppedImage())
    }

    private fun getAppScanActivity() = activity as AppScanActivity?
}